package com.example.demo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class LatestSubmissionResultDto {
    /**
     * 提交记录id
     */
    private Long submissionId;

    /**
     * 题目id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long problemId;
    /**
     * 题目标题
     */
    private String problemName;

    /**
     * 用户id
     */
    private Long uid;
    /**
     * 用户姓名
     */
    private String username;

    /**
     * 语言id
     */
    private Integer languageId;
    /**
     * 语言名称
     */
    private String languageName;

    /**
     * 提交时间
     */
    private Date submissionSubmitTime;

    /**
     * 评测时间
     */
    private Date submissionExecuteTime;

    /**
     * 运行耗时
     */
    private Integer submissionUsedTime;

    /**
     * 运行消耗内存
     */
    private Integer submissionUsedMemory;

    /**
     * 评测结果
     */
    private String submissionJudgeResult;

    /**
     * 评测分数
     */
    private Integer submissionJudgeScore;

    /**
     * 评测机日志
     */
    private String submissionJudgeLog;

    /**
     *  提交代码
     */
    private String submissionCode;
}
